<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
/**
 * 审批记录表
 */
class CreateWorkflowJlTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('workflow_jl', function (Blueprint $table) {
            $table->increments('id');
	        $table->integer('workflow_id')->comment('审批流程id');
	        $table->integer('approver_uid')->comment('审批人id');
	        $table->integer('reason')->comment('拒绝理由')->nullable();
	        $table->integer('status')->comment('审批状态：2通过，3不通过');

	        $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('workflow_jl');
    }
}
